package com.kichina.parking.module.message.socket;

import com.alibaba.fastjson.JSONObject;
import com.kichina.parking.module.message.socket.exception.MessageDealException;
import io.vertx.core.net.NetSocket;

/**
 * @author Surging
 * @version 1.0
 * @ClassName IMessageHandler
 * @date 2022-06-16 14:01
 * @desc  车禁socket消息处理链
 */
public interface IMessageHandler {

    /**
     * @param jsonObject 数据实体
     * @author Surging
     * @Description 处理
     * @Return void
     * @date 15:13 2022-06-16
     **/
    void handler(JSONObject jsonObject, NetSocket netSocket) throws MessageDealException;

    /**
     * @param jsonObject
     * @author Surging
     * @Description
     * @Return boolean
     * @date 15:13 2022-06-16
     **/
    boolean check(JSONObject jsonObject);

    /**
     * @author Surging
     * @Description 链式处理截断
     * @Return boolean       
     * @date 14:43 2022-06-17
     **/
    boolean interrupt();
}
